package com.tomasio.projects.welcome.events
{
	
	import com.tomasio.projects.welcome.model.Veiculo;
	
	import flash.events.Event;
	
	import mx.collections.ArrayCollection;
	
	
	public class VeiculoServiceEvent extends Event
	{
		public static var VEICULO_LOADED_EVENT:String = "veiculoLoadedEvent";
		public static var VEICULOS_LOADED_EVENT:String = "veiculosLoadedEvent";
		public static var VEICULO_REMOVED_EVENT:String = "veiculoRemovedEvent";
		public static var VEICULO_CREATED_EVENT:String = "veiculoCreatedEvent";
		public static var VEICULO_UPDATED_EVENT:String = "veiculoUpdatedEvent";
		
		
		public var veiculo:Veiculo;
		public var veiculos:ArrayCollection;
		
		public function VeiculoServiceEvent(type:String, veiculo:Veiculo, veiculos:ArrayCollection)
		{
			super(type, true);
			this.veiculo = veiculo;
			this.veiculos = veiculos;
		}
		override public function clone():Event {
			return new VeiculoServiceEvent(type, veiculo, veiculos);
		}
	}
}